function GetManager() {

	var myData = [
			['1', 'test', "test",'审计员','浦东新区XX路XX弄','13965652120','XXX@hotmail.com','admin','2012-08-08 12:00:00'],
			['2', 'test', "test",'操作员','浦东新区XX路XX弄','13965652120','XXX@hotmail.com','admin','2012-08-08 12:00:00'],
			['3', 'test', "test",'审计员','浦东新区XX路XX弄','13965652120','XXX@hotmail.com','admin','2012-08-08 12:00:00'],
			['4', 'test', "test",'操作员','浦东新区XX路XX弄','13965652120','XXX@hotmail.com','admin','2012-08-08 12:00:00'],
			['5', 'test', "test",'管理员','浦东新区XX路XX弄','13965652120','XXX@hotmail.com','admin','2012-08-08 12:00:00']

	];


	var store = new Ext.data.ArrayStore({
				fields : [{
							name : 'id'
						}, {
							name : 'name'
						}, {
							name : 'depict'
						}, {
							name : 'right'
						}, {
							name : 'addr'
						}, {
							name : 'tel'
						}, {
							name : 'mail'
						}, {
							name : 'creator'
						}, {
							name : 'createtime'
						}]
			});
			
	store.loadData(myData);
	var nowpage = new Ext.Toolbar.TextItem('1');
	var countpage = new Ext.Toolbar.TextItem('共1页');
	var now_page = 0;
	var count_page = 0;
	var sm = new Ext.grid.CheckboxSelectionModel();
	var grid = new Ext.grid.GridPanel({
				store : store,
				columns : [sm, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '名称',
							width : 100,
							sortable : true,
							dataIndex : 'name'
						}, {
							header : '描述',
							width : 70,
							sortable : true,
							dataIndex : 'depict'
						}, {
							header : '权限',
							width : 70,
							sortable : true,
							dataIndex : 'right'
						}, {
							header : '地址',
							width : 150,
							sortable : true,
							dataIndex : 'addr'
						}, {
							header : '电话',
							width : 100,
							sortable : true,
							dataIndex : 'tel'
						}, {
							header : 'E-Mail',
							width : 100,
							sortable : true,
							dataIndex : 'mail'
						}, {
							header : '创建者',
							width : 100,
							sortable : true,
							dataIndex : 'creator'
						}, {
							header : '创建时间',
							width : 150,
							sortable : true,
							dataIndex : 'createtime'
						}],
				sm : sm,
				tbar : [{
				            text:'添加',
				            tooltip : '添加',
				            iconCls: 'add', 
							handler : function() {
								ManagerWindows(managerReturn);
							}
				        },'-',{
							text : '编辑',
							tooltip : '编辑',
							iconCls : 'modify',
							handler : function() {
								ManagerWindows(managerReturn);
							}
						}, '-', {
							text : '删除',
							tooltip : '删除',
							iconCls : 'delete',
							ref : '../removeBtn',
							disabled : true,
							handler : function() {
								var s = grid.getSelectionModel().getSelections();
								for (var i = 0; r = s[i]; i++) {
									store.remove(r);
								}
							}
						}, '-', {
							text : '刷新',
							tooltip : '刷新',
							iconCls : 'refresh',
							handler : function() {							
								store.loadData(myData);
							}
						}],
				
				stripeRows : true,
				autoExpandColumn : 'id',
				stateful : true,
				stateId : 'managergrid'
			});
	grid.getSelectionModel().on('selectionchange', function(sm) {
				grid.removeBtn.setDisabled(sm.getCount() < 1);
			});

	function managerReturn(data){
		var jsondata = Ext.util.JSON.decode(data);
		
	}

	function reflashgriad(page) {
	}
	
	
	
	return grid;
}


function ManagerWindows(managerReturn){

		var states = [
		['0', '审计员'],
		['1', '操作员'],
		['2', '管理员']
		];

	
	var manager_north = {
		xtype: 'fieldset',
		margins:'5 5 5 5',
		layout : 'form',
		region:'center',
		bodyStyle : 'padding:10px;',
		items: [
		{
			xtype: 'textfield',
			name: 'name',
			id  : 'name',
			fieldLabel: '名称',
			anchor: '100%'
		},{
			xtype: 'textfield',
			name: 'depict',
			id  : 'depict',
			fieldLabel: '描述',
			anchor: '100%'
		},{
			xtype: 'textfield',
			name: 'pwd',
			id  : 'pwd',
			fieldLabel: '设置密码',
			anchor: '100%'
		},{
			xtype: 'textfield',
			name: 'pwd1',
			id  : 'pwd2',
			fieldLabel: '确认密码',
			anchor: '100%'
		},{
								fieldLabel: '权限',
								xtype : 'combo',
								name : 'chanxian',
								frame : true,
								id : 'chanxian',
								store : new Ext.data.ArrayStore({
										fields : ['abbr', 'state'],
										data : states
									}),
								valueField : 'abbr',
								displayField : 'state',
								typeAhead : true,
								mode : 'local',
								triggerAction : 'all',
								value : '0',
								editable : false,
								anchor: '100%'
		},{
			xtype: 'textfield',
			name: 'addr',
			id  : 'addr',
			fieldLabel: '地址',
			anchor: '100%'
		},{
			xtype: 'textfield',
			name: 'tel',
			id  : 'tel',
			fieldLabel: '电话',
			anchor: '100%'
		},{
			xtype: 'textfield',
			name: 'mail',
			id  : 'mail',
			fieldLabel: 'E-Mail',
			anchor: '100%'
		}

		]
	};


	
	var managerWindows = new Ext.Window({
				layout : 'border',
				width : 500,
				height : 320,
				title : "管理员",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'manager',
				items : manager_north,
				plain : true
			});
	managerWindows.addButton({
				text : "确定",
				handler : function() {
					var data = "{name:'" + Ext.get("name").getValue() + "',time:'" + Ext.getCmp("time").getValue() + "',depict:'" + Ext.get("depict").getValue() + "',tips:'" + Ext.getCmp("tips").getValue() + "',terminal:'" + Ext.getCmp("terminal").getValue() + "',network:'" + Ext.getCmp("network").getValue() + "',device:'" + Ext.getCmp("device").getValue() + "',fileencrypt:'" + Ext.getCmp("fileencrypt").getValue() + "',filecontrol:'" + Ext.getCmp("filecontrol").getValue() + "',usb:'" + Ext.getCmp("usb").getValue() + "',system:'" + Ext.getCmp("system").getValue() + "'}";
					managerReturn(data);
					managerWindows.close();
				}
			});
	managerWindows.addButton({
				text : '取 消',
				handler : function() {
					managerWindows.close();
				}
			});
	managerWindows.show();


}
	